package com.mszlu.news.service;

import com.mszlu.news.dao.pojo.SysUser;
import com.mszlu.news.vo.Result;
import com.mszlu.news.vo.UserVo;
import com.mszlu.news.vo.params.PageParams;
import com.mszlu.news.vo.params.SysUserParam;

public interface SysUserService {

    UserVo findUserVoById(Long id);

    SysUser findUserById(Long id);

    SysUser findUser(String account, String password);

    /**
     * 根据token查询用户信息
     * @param token
     * @return
     */
    Result findUserByToken(String token);

    /**
     * 根据id查找用户所有信息
     * @param id
     * @return
     */
    Result findUserInfoById(Long id);

    /**
     * 根据账户查找用户
     * @param account
     * @return
     */
    SysUser findUserByAccount(String account);

    /**
     * 保存用户
     * @param sysUser
     */
    void save(SysUser sysUser);

    Result findAllUser(PageParams params);

    Result updateUser(SysUserParam sysUserParam);

    Result selectUser(SysUserParam sysUserParam);
}
